// File:    TnExToolsFactory.cs
// Author:  HT
// Created: Tuesday, October 18, 2011 4:16:53 PM
// Purpose: Definition of Class TnExToolsFactory

using System;

namespace Tayninh2011
{
    public class TnExToolsFactory
    {
        public TnExtensionTools GetExTool(EnumExTools tool)
        {
            switch (tool)
            {
                case EnumExTools.spatialRelTool:
                    return new TnExToolsSpatialRel();
                case EnumExTools.spatialTool:
                    return new TnExToolsSpatial();
                case EnumExTools.dataManager:
                    return new TnExToolsDataManager();
                default: return null;
            }
        }

    }
}
